<% if defined?(image) && image %>
  <%= image_tag image.attachment.url(:product), itemprop: "image" %>
<% else %>
  <%= image_tag @product.display_image.attachment(:product), itemprop: "image" %>
<% end %>
